FROM openjdk:8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ADD $JAR_NAME $SERVER_NAME
CMD ["nohup","java","-jar","/gateway-1.0-SNAPSHOT.jar","--spring.profiles.active=dev"]